#{extends 'main.html' /}
<h2><a style ="color:#400040;" href = "@{Projects.showProject((Long)project.getEntityId())}">${project.name}</a> > <a href = "@{UserStories.listStories(project.getEntityId())}" style ="color:#400040;">User Stories</a> > 
#{if associate==1}
	<a style ="color:#400040;" href = "@{UserStories.show(storyId)}">Edit</a> > Associate Roles</h2>
#{/if}
#{if associate == 0}
	<a href = "@{ApplicationRoles.showAll(project.getEntityId())}" style ="color:#400040;">Application Roles</a> > Create</h2>
#{/if}
#{if associate == 2}
	<a style ="color:#400040;" href = "@{UserStories.index(storyId)}">Create</a> > Associate Roles</h2>
#{/if}
<hr/> #{form @ApplicationRoles.submitCreateForm(roleName,storyId,associate,projectId), class:'jqtransform', id:'createRole'}
<label for="author">
    Role Name
    <sup>
        <FONT COLOR="#ff0000">
            *
        </FONT>
    </sup>: 
</label><br/><br/><br/>
<input type="text" name="roleName" id="roleName" class="validate[required]"/><input type="submit" value="Create"/> #{/form}